<#include "/common/taglibs.ftl" />
<title>Dialog Demo</title>
<!--begin::Portlet-->
<div class="m-portlet">
    <div class="m-portlet__head">
        <div class="m-portlet__head-caption">
            <div class="m-portlet__head-title">
                <h3 class="m-portlet__head-text">
                    Bootstrap Date Time Picker Examples
                </h3>
            </div>
        </div>
    </div>

    <!--begin::Form-->
    <form class="m-form m-form--fit m-form--label-align-right">
        <div class="m-portlet__body">
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Minimum Setup</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <input type="text" class="form-control" id="m_datetimepicker_1" readonly placeholder="Select date & time" />
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Input Group Setup</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" readonly placeholder="Select date & time" id="m_datetimepicker_2" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-calendar-check-o glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Enable Helper Buttons</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" readonly value="1899-11-29 00:30" id="m_datetimepicker_3" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-calendar glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <span class="m-form__help">Enable clear and today helper buttons</span>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Orientation</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Top left" id="m_datetimepicker_4_1" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-check-circle-o glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <div class="m--space-10"></div>
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Top right" id="m_datetimepicker_4_2" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-clock-o glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <div class="m--space-10"></div>
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Bottom left" id="m_datetimepicker_4_3" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-check glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <div class="m--space-10"></div>
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Bottom right" id="m_datetimepicker_4_4" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-download glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Meridian Format</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Select date and time" id="m_datetimepicker_5" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-calendar glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <span class="m-form__help">Linked pickers for date range selection</span>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Date Only</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Select date" id="m_datetimepicker_6" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-calendar glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <span class="m-form__help">Only date selection</span>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Time Only</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <div class="input-group date">
                        <input type="text" class="form-control m-input" placeholder="Select time" id="m_datetimepicker_7" />
                        <div class="input-group-append">
													<span class="input-group-text">
														<i class="la la-calendar glyphicon-th"></i>
													</span>
                        </div>
                    </div>
                    <span class="m-form__help">Only time selection</span>
                </div>
            </div>
            <div class="form-group m-form__group row">
                <label class="col-form-label col-lg-3 col-sm-12">Modal Demos</label>
                <div class="col-lg-4 col-md-9 col-sm-12">
                    <a href="" class="btn btn-primary m-btn m-btn--pill" data-toggle="modal" data-target="#m_datetimepicker_modal">Launch Modal Date Time pickers</a>
                </div>
            </div>
        </div>
        <div class="m-portlet__foot m-portlet__foot--fit">
            <div class="m-form__actions m-form__actions">
                <div class="row">
                    <div class="col-lg-9 ml-lg-auto">
                        <button type="submit" class="btn btn-success">Submit</button>
                        <button type="submit" class="btn btn-secondary">Cancel</button>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <!--end::Form-->
</div>

<!--end::Portlet-->

<page-script>
    <script>
        var BootstrapDatetimepicker = {
            init: function() {
                $("#m_datetimepicker_1").datetimepicker({
                    todayHighlight: !0,
                    autoclose: !0,
                    format: "yyyy.mm.dd hh:ii"
                }),
                        $("#m_datetimepicker_1_modal").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            format: "yyyy.mm.dd hh:ii"
                        }),
                        $("#m_datetimepicker_2, #m_datetimepicker_1_validate, #m_datetimepicker_2_validate, #m_datetimepicker_3_validate").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left",
                            format: "yyyy/mm/dd hh:ii"
                        }),
                        $("#m_datetimepicker_2_modal").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left",
                            format: "yyyy/mm/dd hh:ii"
                        }),
                        $("#m_datetimepicker_3").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left",
                            todayBtn: !0,
                            format: "yyyy-mm-dd hh:ii:ss"
                        }),
                        $("#m_datetimepicker_3_modal").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left",
                            todayBtn: !0,
                            format: "yyyy/mm/dd hh:ii"
                        }),
                        $("#m_datetimepicker_4_1").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left",
                            format: "yyyy.mm.dd hh:ii"
                        }),
                        $("#m_datetimepicker_4_2").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-right",
                            format: "yyyy/mm/dd hh:ii"
                        }),
                        $("#m_datetimepicker_4_3").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "top-left",
                            format: "yyyy-mm-dd hh:ii"
                        }),
                        $("#m_datetimepicker_4_4").datetimepicker({
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "top-right",
                            format: "yyyy-mm-dd hh:ii"
                        }),
                        $("#m_datetimepicker_5").datetimepicker({
                            format: "dd MM yyyy - HH:ii P",
                            showMeridian: !0,
                            todayHighlight: !0,
                            autoclose: !0,
                            pickerPosition: "bottom-left"
                        }),
                        $("#m_datetimepicker_6").datetimepicker({
                            format: "yyyy/mm/dd",
                            todayHighlight: !0,
                            autoclose: !0,
                            startView: 2,
                            minView: 2,
                            forceParse: 0,
                            pickerPosition: "bottom-left"
                        }),
                        $("#m_datetimepicker_7").datetimepicker({
                            format: "hh:ii",
                            showMeridian: !0,
                            todayHighlight: !0,
                            autoclose: !0,
                            startView: 1,
                            minView: 0,
                            maxView: 1,
                            forceParse: 0,
                            pickerPosition: "bottom-left"
                        })
            }
        };
        jQuery(document).ready(function() {
            BootstrapDatetimepicker.init()
        });

    </script>

</page-script>